/**
 * 科技系统配置
 * 包含所有可研究的科技及其效果
 */

export const techs = [
  // 基础科技
  {
    id: 'basic_tools',
    name: '基础工具',
    icon: '🔧',
    description: '解锁基础工具制作',
    completed: false,
    researching: false,
    cost: 50,
    effects: ['制作效率 +20%'],
    prerequisites: [],
    category: '基础'
  },
  {
    id: 'fire_mastery',
    name: '火焰掌握',
    icon: '🔥',
    description: '掌握火焰技术',
    completed: false,
    researching: false,
    cost: 30,
    effects: ['篝火效率 +100%'],
    prerequisites: [],
    category: '基础'
  },
  {
    id: 'water_purification',
    name: '净水技术',
    icon: '💧',
    description: '净化水源',
    completed: false,
    researching: false,
    cost: 40,
    effects: ['淡水产量 +50%'],
    prerequisites: ['fire_mastery'],
    category: '基础'
  },
  
  // 中级科技
  {
    id: 'advanced_building',
    name: '高级建筑',
    icon: '🏗️',
    description: '解锁高级建筑技术',
    completed: false,
    researching: false,
    cost: 100,
    effects: ['建筑效率 +50%'],
    prerequisites: ['basic_tools'],
    category: '建筑'
  },
  {
    id: 'agriculture',
    name: '农业技术',
    icon: '🌾',
    description: '掌握种植技术',
    completed: false,
    researching: false,
    cost: 80,
    effects: ['食物产量 +100%'],
    prerequisites: ['water_purification'],
    category: '农业'
  },
  {
    id: 'metalworking',
    name: '金属加工',
    icon: '⚒️',
    description: '掌握金属冶炼',
    completed: false,
    researching: false,
    cost: 120,
    effects: ['金属工具制作'],
    prerequisites: ['advanced_building', 'fire_mastery'],
    category: '工艺'
  },
  {
    id: 'medicine',
    name: '医疗知识',
    icon: '💊',
    description: '掌握医疗技术',
    completed: false,
    researching: false,
    cost: 90,
    effects: ['治疗效果 +100%'],
    prerequisites: ['agriculture'],
    category: '医疗'
  },
  
  // 高级科技
  {
    id: 'engineering',
    name: '工程学',
    icon: '⚙️',
    description: '掌握复杂工程',
    completed: false,
    researching: false,
    cost: 200,
    effects: ['高级建筑解锁'],
    prerequisites: ['metalworking', 'advanced_building'],
    category: '工程'
  },
  {
    id: 'defense_systems',
    name: '防御系统',
    icon: '🛡️',
    description: '掌握防御技术',
    completed: false,
    researching: false,
    cost: 150,
    effects: ['防御力 +200%'],
    prerequisites: ['engineering'],
    category: '防御'
  },
  {
    id: 'energy_systems',
    name: '能源系统',
    icon: '⚡',
    description: '掌握能源技术',
    completed: false,
    researching: false,
    cost: 250,
    effects: ['能源效率 +300%'],
    prerequisites: ['engineering', 'metalworking'],
    category: '能源'
  },
  {
    id: 'advanced_medicine',
    name: '高级医疗',
    icon: '🧬',
    description: '掌握高级医疗',
    completed: false,
    researching: false,
    cost: 180,
    effects: ['生命恢复 +200%'],
    prerequisites: ['medicine', 'engineering'],
    category: '医疗'
  }
] 